package com.example.hospitaltraining.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 
 * @TableName sys_file
 */

@Data
@TableName("sys_file")
@NoArgsConstructor
@AllArgsConstructor
public class Files implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 文件名称
     */
    private String name;

    /**
     * 文件类型
     */
    private String type;

    /**
     * 文件大小
     */
    private Long size;

    /**
     * 下载链接
     */
    private String url;
    /**
     * 文件md5
     */
    private String md5;

    /**
     * 是否删除
     */
    private Integer isDelete;

    /**
     * 是否禁用连接
     */
    private Integer enable;


    public Files(String name, String type, long size, String url, String md5) {
        this.name =name;
        this.type = type;
        this.size = size;
        this.url = url;
        this.md5 = md5;
    }
}